using System;
using System.Collections.Generic;
using System.Text;
using DTO;
using DAO;
using System.Data;
namespace BUS
{
    public class ThanhLySachBUS
    {
        public static DataTable LayDanhSachThanhLySach_BUS()
        {
            DataTable dt = ThanhLySachDAO.laydsthanhlysach_DAO();
            return dt;
        }
        public static int LayThanhLySachCuoiCung_BUS()
        {
            return ThanhLySachDAO.LayThanhLySachCuoiCung();
        }

        public static void ThemPhieuThanhLy_BUS(ThanhLySachDTO tlsDTO)
        {
            ThanhLySachDAO.ThemPhieuThanhLy_DAO(tlsDTO);
        }

        public static void XoaThanhLySach(int maThanhLy)
        {
            ThanhLySachDAO.XoaThanhLySach(maThanhLy);
        }

        public static void CapNhatThanhLySach_BUS(ThanhLySachDTO tlsDTO)
        {
            ThanhLySachDAO.CapNhatThanhLySach_DAO(tlsDTO);
        }

        public static DataTable TimKiemThanhLySach_BUS(int maSach)
        {
            return ThanhLySachDAO.TimThanhLySach_DAO(maSach);
        }
    }
}
